home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 / Aminet - June 1993 [Walnut Creek].iso / ab20 / languags / ada / adaed10a.lzh / Ada / Examples / Dine / diners.ada < prev    next >
Encoding:
Text File  |  1992-03-03  |  451 b   |  17 lines

  1. WITH Room;
  2. PROCEDURE Diners IS
  3.  
  4. -- Main procedure for dining philosophers. 
  5. -- The endless loop is a device to keep the main program alive, because
  6. -- some Ada implementations kill off library tasks when the main procedure
  7. -- is completed. This device makes the program entirely portable.
  8.  
  9. -- Michael B. Feldman, The George Washington University, November 1990.
  10.  
  11. BEGIN
  12.   Room.Head_Waiter.Open_The_Room;
  13.   LOOP
  14.     DELAY 20.0;
  15.   END LOOP;
  16. END Diners;
  17.